<div ng-controller="NewPostCtrl">
    <form  class="form-horizontal">
    <h1 class="page-header">New Post</h1>
    <fieldset>    
        <div class="control-group">
            <label class="control-label" for="title">Title</label>
            <div class="controls">
                <input id="title" type="text" class="input-block-level"
                       required="true" ng-model="post.title"></input>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="body">Body</label>
            <div class="controls">
                <textarea id="body" class="input-block-level" rows="10"
                          ng-model="post.body" required="true"></textarea>
            </div>
        </div>
    </fieldset> 
    <div class="form-actions">			
        <button class="btn btn-primary" ng-click="savePost()">Add Post</button>
    </div>
    </form>
</div>